﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public static class NumberCommon
    {
        #region Double
        public static double ConvertToDouble(object value)
        {
            double result;
            if (Double.TryParse(value.ToString().Trim(), out result))
            {
                return result;
            }
            return 0;
        }
        #endregion
    }
}
